<!-- 微信自定义接口 -->
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
    wx.config({
        "debug": false,
        "beta": false,
        'appId': '{$appId}',
        'timestamp':'{$timestamp}',
        'nonceStr': '{$noncestr}',
        'signature': '{$signature}',
        "jsApiList": ["onMenuShareAppMessage", "onMenuShareTimeline"]
    });
    wx.ready(function () {
        wx.onMenuShareAppMessage({
            title: '我在{$system_name}摆了一个王者荣耀擂台 欢迎来战！赢取千元大礼！',
            desc: '我在{$system_name}摆了一个王者荣耀擂台 欢迎来战！赢取千元大礼！',
            link: "{$host}/Home/Index",
            imgUrl: '{$host}__PUBLIC__/new_images/wechat_share.jpg'
        });
        wx.onMenuShareTimeline({
            title: '我在{$system_name}摆了一个王者荣耀擂台 欢迎来战！赢取千元大礼！',
            desc: '我在{$system_name}摆了一个王者荣耀擂台 欢迎来战！赢取千元大礼！',
            link: "{$host}/Home/Index",
            imgUrl: '{$host}__PUBLIC__/new_images/wechat_share.jpg'
        });
    });
    function weChat(){
        $("#mcover").css("display","none");  // 点击弹出层，弹出层消失
    }
</script>
<!-- 微信自定义接口 -->